package com.hdy.doubleLinkedList;

import org.junit.Test;

public class LinkedListTest {
    public LinkedListTest() {
    }

    @Test
    public void test() {
        LinkedList linkedList = new LinkedList();
        double i = 1.0;
        String s = "1";
        linkedList.insert(0, i);
        linkedList.insert(1, s);
        linkedList.insert(2, "链表");
        linkedList.insert(3, 'c');
        linkedList.insert(5, 21);
        linkedList.insert(6, 'j');
        char c = true;
        boolean remove = linkedList.remove("链表");
        linkedList.remove(6);
        System.out.printf("是否删除'链表'：" + remove);
        System.out.println();
        linkedList.reverse();
        linkedList.printForEach();
    }
}
